3.3.16 \(\int \frac {\sin (c+d x)}{(a-b \sin ^4(c+d x))^2} \, dx\) [216]

Optimal. Leaf size=221 \[ -\frac {\left (3 \sqrt {a}-2 \sqrt {b}\right ) \tan ^{-1}\left (\frac {\sqrt [4]{b} \cos (c+d x)}{\sqrt {\sqrt {a}-\sqrt {b}}}\right )}{8 a^{3/2} \left (\sqrt {a}-\sqrt {b}\right )^{3/2} \sqrt [4]{b} d}-\frac {\left (3 \sqrt {a}+2 \sqrt {b}\right ) \tanh ^{-1}\left (\frac {\sqrt [4]{b} \cos (c+d x)}{\sqrt {\sqrt {a}+\sqrt {b}}}\right )}{8 a^{3/2} \left (\sqrt {a}+\sqrt {b}\right )^{3/2} \sqrt [4]{b} d}-\frac {\cos (c+d x) \left (a+b-b \cos ^2(c+d x)\right )}{4 a (a-b) d \left (a-b+2 b \cos ^2(c+d x)-b \cos ^4(c+d x)\right )} \]

[Out]

-1/4*cos(d*x+c)*(a+b-b*cos(d*x+c)^2)/a/(a-b)/d/(a-b+2*b*cos(d*x+c)^2-b*cos(d*x+c)^4)-1/8*arctan(b^(1/4)*cos(d*
x+c)/(a^(1/2)-b^(1/2))^(1/2))*(3*a^(1/2)-2*b^(1/2))/a^(3/2)/b^(1/4)/d/(a^(1/2)-b^(1/2))^(3/2)-1/8*arctanh(b^(1
/4)*cos(d*x+c)/(a^(1/2)+b^(1/2))^(1/2))*(3*a^(1/2)+2*b^(1/2))/a^(3/2)/b^(1/4)/d/(a^(1/2)+b^(1/2))^(3/2)

________________________________________________________________________________________

Rubi [A]
time = 0.20, antiderivative size = 221, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 5, integrand size = 22, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.227, Rules used = {3294, 1106, 1180, 211, 214} \begin {gather*} -\frac {\left (3 \sqrt {a}-2 \sqrt {b}\right ) \text {ArcTan}\left (\frac {\sqrt [4]{b} \cos (c+d x)}{\sqrt {\sqrt {a}-\sqrt {b}}}\right )}{8 a^{3/2} \sqrt [4]{b} d \left (\sqrt {a}-\sqrt {b}\right )^{3/2}}-\frac {\left (3 \sqrt {a}+2 \sqrt {b}\right ) \tanh ^{-1}\left (\frac {\sqrt [4]{b} \cos (c+d x)}{\sqrt {\sqrt {a}+\sqrt {b}}}\right )}{8 a^{3/2} \sqrt [4]{b} d \left (\sqrt {a}+\sqrt {b}\right )^{3/2}}-\frac {\cos (c+d x) \left (a-b \cos ^2(c+d x)+b\right )}{4 a d (a-b) \left (a-b \cos ^4(c+d x)+2 b \cos ^2(c+d x)-b\right )} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[Sin[c + d*x]/(a - b*Sin[c + d*x]^4)^2,x]

[Out]

-1/8*((3*Sqrt[a] - 2*Sqrt[b])*ArcTan[(b^(1/4)*Cos[c + d*x])/Sqrt[Sqrt[a] - Sqrt[b]]])/(a^(3/2)*(Sqrt[a] - Sqrt
[b])^(3/2)*b^(1/4)*d) - ((3*Sqrt[a] + 2*Sqrt[b])*ArcTanh[(b^(1/4)*Cos[c + d*x])/Sqrt[Sqrt[a] + Sqrt[b]]])/(8*a
^(3/2)*(Sqrt[a] + Sqrt[b])^(3/2)*b^(1/4)*d) - (Cos[c + d*x]*(a + b - b*Cos[c + d*x]^2))/(4*a*(a - b)*d*(a - b
+ 2*b*Cos[c + d*x]^2 - b*Cos[c + d*x]^4))

Rule 211

Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(Rt[a/b, 2]/a)*ArcTan[x/Rt[a/b, 2]], x] /; FreeQ[{a, b}, x]
&& PosQ[a/b]

Rule 214

Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(Rt[-a/b, 2]/a)*ArcTanh[x/Rt[-a/b, 2]], x] /; FreeQ[{a, b},
x] && NegQ[a/b]

Rule 1106

Int[((a_) + (b_.)*(x_)^2 + (c_.)*(x_)^4)^(p_), x_Symbol] :> Simp[(-x)*(b^2 - 2*a*c + b*c*x^2)*((a + b*x^2 + c*
x^4)^(p + 1)/(2*a*(p + 1)*(b^2 - 4*a*c))), x] + Dist[1/(2*a*(p + 1)*(b^2 - 4*a*c)), Int[(b^2 - 2*a*c + 2*(p +
1)*(b^2 - 4*a*c) + b*c*(4*p + 7)*x^2)*(a + b*x^2 + c*x^4)^(p + 1), x], x] /; FreeQ[{a, b, c}, x] && NeQ[b^2 -
4*a*c, 0] && LtQ[p, -1] && IntegerQ[2*p]

Rule 1180

Int[((d_) + (e_.)*(x_)^2)/((a_) + (b_.)*(x_)^2 + (c_.)*(x_)^4), x_Symbol] :> With[{q = Rt[b^2 - 4*a*c, 2]}, Di
st[e/2 + (2*c*d - b*e)/(2*q), Int[1/(b/2 - q/2 + c*x^2), x], x] + Dist[e/2 - (2*c*d - b*e)/(2*q), Int[1/(b/2 +
 q/2 + c*x^2), x], x]] /; FreeQ[{a, b, c, d, e}, x] && NeQ[b^2 - 4*a*c, 0] && NeQ[c*d^2 - a*e^2, 0] && PosQ[b^
2 - 4*a*c]

Rule 3294

Int[sin[(e_.) + (f_.)*(x_)]^(m_.)*((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)]^4)^(p_.), x_Symbol] :> With[{ff = Free
Factors[Cos[e + f*x], x]}, Dist[-ff/f, Subst[Int[(1 - ff^2*x^2)^((m - 1)/2)*(a + b - 2*b*ff^2*x^2 + b*ff^4*x^4
)^p, x], x, Cos[e + f*x]/ff], x]] /; FreeQ[{a, b, e, f, p}, x] && IntegerQ[(m - 1)/2]

Rubi steps

\begin {align*} \int \frac {\sin (c+d x)}{\left (a-b \sin ^4(c+d x)\right )^2} \, dx &=-\frac {\text {Subst}\left (\int \frac {1}{\left (a-b+2 b x^2-b x^4\right )^2} \, dx,x,\cos (c+d x)\right )}{d}\\ &=-\frac {\cos (c+d x) \left (a+b-b \cos ^2(c+d x)\right )}{4 a (a-b) d \left (a-b+2 b \cos ^2(c+d x)-b \cos ^4(c+d x)\right )}+\frac {\text {Subst}\left (\int \frac {2 (a-b) b+4 b^2-2 \left (4 (a-b) b+4 b^2\right )+2 b^2 x^2}{a-b+2 b x^2-b x^4} \, dx,x,\cos (c+d x)\right )}{8 a (a-b) b d}\\ &=-\frac {\cos (c+d x) \left (a+b-b \cos ^2(c+d x)\right )}{4 a (a-b) d \left (a-b+2 b \cos ^2(c+d x)-b \cos ^4(c+d x)\right )}+\frac {\left (\left (3 \sqrt {a}-2 \sqrt {b}\right ) \sqrt {b}\right ) \text {Subst}\left (\int \frac {1}{-\sqrt {a} \sqrt {b}+b-b x^2} \, dx,x,\cos (c+d x)\right )}{8 a^{3/2} \left (\sqrt {a}-\sqrt {b}\right ) d}+\frac {\left (b^2-\frac {-4 b^3-2 b \left (2 (a-b) b+4 b^2-2 \left (4 (a-b) b+4 b^2\right )\right )}{4 \sqrt {a} \sqrt {b}}\right ) \text {Subst}\left (\int \frac {1}{\sqrt {a} \sqrt {b}+b-b x^2} \, dx,x,\cos (c+d x)\right )}{8 a (a-b) b d}\\ &=-\frac {\left (3 \sqrt {a}-2 \sqrt {b}\right ) \tan ^{-1}\left (\frac {\sqrt [4]{b} \cos (c+d x)}{\sqrt {\sqrt {a}-\sqrt {b}}}\right )}{8 a^{3/2} \left (\sqrt {a}-\sqrt {b}\right )^{3/2} \sqrt [4]{b} d}-\frac {\left (3 \sqrt {a}+2 \sqrt {b}\right ) \tanh ^{-1}\left (\frac {\sqrt [4]{b} \cos (c+d x)}{\sqrt {\sqrt {a}+\sqrt {b}}}\right )}{8 a^{3/2} \left (\sqrt {a}+\sqrt {b}\right )^{3/2} \sqrt [4]{b} d}-\frac {\cos (c+d x) \left (a+b-b \cos ^2(c+d x)\right )}{4 a (a-b) d \left (a-b+2 b \cos ^2(c+d x)-b \cos ^4(c+d x)\right )}\\ \end {align*}

________________________________________________________________________________________

Mathematica [C] Result contains higher order function than in optimal. Order 9 vs. order 3 in optimal.
time = 0.28, size = 469, normalized size = 2.12 \begin {gather*} -\frac {\frac {32 \cos (c+d x) (2 a+b-b \cos (2 (c+d x)))}{8 a-3 b+4 b \cos (2 (c+d x))-b \cos (4 (c+d x))}+i \text {RootSum}\left [b-4 b \text {$\#$1}^2-16 a \text {$\#$1}^4+6 b \text {$\#$1}^4-4 b \text {$\#$1}^6+b \text {$\#$1}^8\&,\frac {-2 b \tan ^{-1}\left (\frac {\sin (c+d x)}{\cos (c+d x)-\text {$\#$1}}\right )+i b \log \left (1-2 \cos (c+d x) \text {$\#$1}+\text {$\#$1}^2\right )+24 a \tan ^{-1}\left (\frac {\sin (c+d x)}{\cos (c+d x)-\text {$\#$1}}\right ) \text {$\#$1}^2-10 b \tan ^{-1}\left (\frac {\sin (c+d x)}{\cos (c+d x)-\text {$\#$1}}\right ) \text {$\#$1}^2-12 i a \log \left (1-2 \cos (c+d x) \text {$\#$1}+\text {$\#$1}^2\right ) \text {$\#$1}^2+5 i b \log \left (1-2 \cos (c+d x) \text {$\#$1}+\text {$\#$1}^2\right ) \text {$\#$1}^2-24 a \tan ^{-1}\left (\frac {\sin (c+d x)}{\cos (c+d x)-\text {$\#$1}}\right ) \text {$\#$1}^4+10 b \tan ^{-1}\left (\frac {\sin (c+d x)}{\cos (c+d x)-\text {$\#$1}}\right ) \text {$\#$1}^4+12 i a \log \left (1-2 \cos (c+d x) \text {$\#$1}+\text {$\#$1}^2\right ) \text {$\#$1}^4-5 i b \log \left (1-2 \cos (c+d x) \text {$\#$1}+\text {$\#$1}^2\right ) \text {$\#$1}^4+2 b \tan ^{-1}\left (\frac {\sin (c+d x)}{\cos (c+d x)-\text {$\#$1}}\right ) \text {$\#$1}^6-i b \log \left (1-2 \cos (c+d x) \text {$\#$1}+\text {$\#$1}^2\right ) \text {$\#$1}^6}{-b \text {$\#$1}-8 a \text {$\#$1}^3+3 b \text {$\#$1}^3-3 b \text {$\#$1}^5+b \text {$\#$1}^7}\&\right ]}{32 a (a-b) d} \end {gather*}

Warning: Unable to verify antiderivative.

[In]

Integrate[Sin[c + d*x]/(a - b*Sin[c + d*x]^4)^2,x]

[Out]

-1/32*((32*Cos[c + d*x]*(2*a + b - b*Cos[2*(c + d*x)]))/(8*a - 3*b + 4*b*Cos[2*(c + d*x)] - b*Cos[4*(c + d*x)]
) + I*RootSum[b - 4*b*#1^2 - 16*a*#1^4 + 6*b*#1^4 - 4*b*#1^6 + b*#1^8 & , (-2*b*ArcTan[Sin[c + d*x]/(Cos[c + d
*x] - #1)] + I*b*Log[1 - 2*Cos[c + d*x]*#1 + #1^2] + 24*a*ArcTan[Sin[c + d*x]/(Cos[c + d*x] - #1)]*#1^2 - 10*b
*ArcTan[Sin[c + d*x]/(Cos[c + d*x] - #1)]*#1^2 - (12*I)*a*Log[1 - 2*Cos[c + d*x]*#1 + #1^2]*#1^2 + (5*I)*b*Log
[1 - 2*Cos[c + d*x]*#1 + #1^2]*#1^2 - 24*a*ArcTan[Sin[c + d*x]/(Cos[c + d*x] - #1)]*#1^4 + 10*b*ArcTan[Sin[c +
 d*x]/(Cos[c + d*x] - #1)]*#1^4 + (12*I)*a*Log[1 - 2*Cos[c + d*x]*#1 + #1^2]*#1^4 - (5*I)*b*Log[1 - 2*Cos[c +
d*x]*#1 + #1^2]*#1^4 + 2*b*ArcTan[Sin[c + d*x]/(Cos[c + d*x] - #1)]*#1^6 - I*b*Log[1 - 2*Cos[c + d*x]*#1 + #1^
2]*#1^6)/(-(b*#1) - 8*a*#1^3 + 3*b*#1^3 - 3*b*#1^5 + b*#1^7) & ])/(a*(a - b)*d)

________________________________________________________________________________________

Maple [A]
time = 1.06, size = 241, normalized size = 1.09

method result size
derivativedivides \(-\frac {b^{2} \left (\frac {\frac {\left (\sqrt {a b}+a \right ) \cos \left (d x +c \right )}{2 b \left (a -b \right ) \left (\cos ^{2}\left (d x +c \right )+\frac {\sqrt {a b}}{b}-1\right )}+\frac {\left (\sqrt {a b}+3 a -2 b \right ) \arctan \left (\frac {b \cos \left (d x +c \right )}{\sqrt {\left (\sqrt {a b}-b \right ) b}}\right )}{2 \left (a -b \right ) \sqrt {\left (\sqrt {a b}-b \right ) b}}}{4 \sqrt {a b}\, a b}+\frac {-\frac {\left (-\sqrt {a b}+a \right ) \cos \left (d x +c \right )}{2 b \left (a -b \right ) \left (\cos ^{2}\left (d x +c \right )-1-\frac {\sqrt {a b}}{b}\right )}-\frac {\left (\sqrt {a b}-3 a +2 b \right ) \arctanh \left (\frac {b \cos \left (d x +c \right )}{\sqrt {\left (\sqrt {a b}+b \right ) b}}\right )}{2 \left (a -b \right ) \sqrt {\left (\sqrt {a b}+b \right ) b}}}{4 \sqrt {a b}\, a b}\right )}{d}\) \(241\)
default \(-\frac {b^{2} \left (\frac {\frac {\left (\sqrt {a b}+a \right ) \cos \left (d x +c \right )}{2 b \left (a -b \right ) \left (\cos ^{2}\left (d x +c \right )+\frac {\sqrt {a b}}{b}-1\right )}+\frac {\left (\sqrt {a b}+3 a -2 b \right ) \arctan \left (\frac {b \cos \left (d x +c \right )}{\sqrt {\left (\sqrt {a b}-b \right ) b}}\right )}{2 \left (a -b \right ) \sqrt {\left (\sqrt {a b}-b \right ) b}}}{4 \sqrt {a b}\, a b}+\frac {-\frac {\left (-\sqrt {a b}+a \right ) \cos \left (d x +c \right )}{2 b \left (a -b \right ) \left (\cos ^{2}\left (d x +c \right )-1-\frac {\sqrt {a b}}{b}\right )}-\frac {\left (\sqrt {a b}-3 a +2 b \right ) \arctanh \left (\frac {b \cos \left (d x +c \right )}{\sqrt {\left (\sqrt {a b}+b \right ) b}}\right )}{2 \left (a -b \right ) \sqrt {\left (\sqrt {a b}+b \right ) b}}}{4 \sqrt {a b}\, a b}\right )}{d}\) \(241\)
risch \(-\frac {b \,{\mathrm e}^{7 i \left (d x +c \right )}-4 a \,{\mathrm e}^{5 i \left (d x +c \right )}-b \,{\mathrm e}^{5 i \left (d x +c \right )}-4 a \,{\mathrm e}^{3 i \left (d x +c \right )}-b \,{\mathrm e}^{3 i \left (d x +c \right )}+b \,{\mathrm e}^{i \left (d x +c \right )}}{2 a \left (a -b \right ) d \left (b \,{\mathrm e}^{8 i \left (d x +c \right )}-4 b \,{\mathrm e}^{6 i \left (d x +c \right )}-16 a \,{\mathrm e}^{4 i \left (d x +c \right )}+6 b \,{\mathrm e}^{4 i \left (d x +c \right )}-4 b \,{\mathrm e}^{2 i \left (d x +c \right )}+b \right )}-\frac {i \left (\munderset {\textit {\_R} =\RootOf \left (\left (4096 a^{9} b \,d^{4}-12288 a^{8} b^{2} d^{4}+12288 a^{7} b^{3} d^{4}-4096 a^{6} b^{4} d^{4}\right ) \textit {\_Z}^{4}+\left (-1920 a^{5} b \,d^{2}+1920 a^{4} b^{2} d^{2}-512 a^{3} b^{3} d^{2}\right ) \textit {\_Z}^{2}-81 a^{2}+72 a b -16 b^{2}\right )}{\sum }\textit {\_R} \ln \left ({\mathrm e}^{2 i \left (d x +c \right )}+\left (\left (-\frac {4096 i a^{7} d^{3} b}{81 a^{2}-81 a b +20 b^{2}}+\frac {14336 i a^{6} d^{3} b^{2}}{81 a^{2}-81 a b +20 b^{2}}-\frac {18432 i a^{5} d^{3} b^{3}}{81 a^{2}-81 a b +20 b^{2}}+\frac {10240 i a^{4} b^{4} d^{3}}{81 a^{2}-81 a b +20 b^{2}}-\frac {2048 i a^{3} b^{5} d^{3}}{81 a^{2}-81 a b +20 b^{2}}\right ) \textit {\_R}^{3}+\left (\frac {432 i a^{4} d}{81 a^{2}-81 a b +20 b^{2}}+\frac {576 i a^{3} d b}{81 a^{2}-81 a b +20 b^{2}}-\frac {1360 i a^{2} d \,b^{2}}{81 a^{2}-81 a b +20 b^{2}}+\frac {736 i a \,b^{3} d}{81 a^{2}-81 a b +20 b^{2}}-\frac {128 i b^{4} d}{81 a^{2}-81 a b +20 b^{2}}\right ) \textit {\_R} \right ) {\mathrm e}^{i \left (d x +c \right )}+1\right )\right )}{2}\) \(557\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(sin(d*x+c)/(a-b*sin(d*x+c)^4)^2,x,method=_RETURNVERBOSE)

[Out]

-1/d*b^2*(1/4/(a*b)^(1/2)/a/b*(1/2*((a*b)^(1/2)+a)/b/(a-b)*cos(d*x+c)/(cos(d*x+c)^2+(a*b)^(1/2)/b-1)+1/2*((a*b
)^(1/2)+3*a-2*b)/(a-b)/(((a*b)^(1/2)-b)*b)^(1/2)*arctan(b*cos(d*x+c)/(((a*b)^(1/2)-b)*b)^(1/2)))+1/4/(a*b)^(1/
2)/a/b*(-1/2*(-(a*b)^(1/2)+a)/b/(a-b)*cos(d*x+c)/(cos(d*x+c)^2-1-(a*b)^(1/2)/b)-1/2*((a*b)^(1/2)-3*a+2*b)/(a-b
)/(((a*b)^(1/2)+b)*b)^(1/2)*arctanh(b*cos(d*x+c)/(((a*b)^(1/2)+b)*b)^(1/2))))

________________________________________________________________________________________

Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sin(d*x+c)/(a-b*sin(d*x+c)^4)^2,x, algorithm="maxima")

[Out]

1/2*(4*b^2*cos(2*d*x + 2*c)*cos(d*x + c) + 4*b^2*sin(2*d*x + 2*c)*sin(d*x + c) - b^2*cos(d*x + c) - 4*(4*a*b +
 b^2)*sin(3*d*x + 3*c)*sin(2*d*x + 2*c) - (b^2*cos(7*d*x + 7*c) + b^2*cos(d*x + c) - (4*a*b + b^2)*cos(5*d*x +
 5*c) - (4*a*b + b^2)*cos(3*d*x + 3*c))*cos(8*d*x + 8*c) + (4*b^2*cos(6*d*x + 6*c) + 4*b^2*cos(2*d*x + 2*c) -
b^2 + 2*(8*a*b - 3*b^2)*cos(4*d*x + 4*c))*cos(7*d*x + 7*c) + 4*(b^2*cos(d*x + c) - (4*a*b + b^2)*cos(5*d*x + 5
*c) - (4*a*b + b^2)*cos(3*d*x + 3*c))*cos(6*d*x + 6*c) + (4*a*b + b^2 - 2*(32*a^2 - 4*a*b - 3*b^2)*cos(4*d*x +
 4*c) - 4*(4*a*b + b^2)*cos(2*d*x + 2*c))*cos(5*d*x + 5*c) - 2*((32*a^2 - 4*a*b - 3*b^2)*cos(3*d*x + 3*c) - (8
*a*b - 3*b^2)*cos(d*x + c))*cos(4*d*x + 4*c) + (4*a*b + b^2 - 4*(4*a*b + b^2)*cos(2*d*x + 2*c))*cos(3*d*x + 3*
c) + 2*((a^2*b^2 - a*b^3)*d*cos(8*d*x + 8*c)^2 + 16*(a^2*b^2 - a*b^3)*d*cos(6*d*x + 6*c)^2 + 4*(64*a^4 - 112*a
^3*b + 57*a^2*b^2 - 9*a*b^3)*d*cos(4*d*x + 4*c)^2 + 16*(a^2*b^2 - a*b^3)*d*cos(2*d*x + 2*c)^2 + (a^2*b^2 - a*b
^3)*d*sin(8*d*x + 8*c)^2 + 16*(a^2*b^2 - a*b^3)*d*sin(6*d*x + 6*c)^2 + 4*(64*a^4 - 112*a^3*b + 57*a^2*b^2 - 9*
a*b^3)*d*sin(4*d*x + 4*c)^2 + 16*(8*a^3*b - 11*a^2*b^2 + 3*a*b^3)*d*sin(4*d*x + 4*c)*sin(2*d*x + 2*c) + 16*(a^
2*b^2 - a*b^3)*d*sin(2*d*x + 2*c)^2 - 8*(a^2*b^2 - a*b^3)*d*cos(2*d*x + 2*c) + (a^2*b^2 - a*b^3)*d - 2*(4*(a^2
*b^2 - a*b^3)*d*cos(6*d*x + 6*c) + 2*(8*a^3*b - 11*a^2*b^2 + 3*a*b^3)*d*cos(4*d*x + 4*c) + 4*(a^2*b^2 - a*b^3)
*d*cos(2*d*x + 2*c) - (a^2*b^2 - a*b^3)*d)*cos(8*d*x + 8*c) + 8*(2*(8*a^3*b - 11*a^2*b^2 + 3*a*b^3)*d*cos(4*d*
x + 4*c) + 4*(a^2*b^2 - a*b^3)*d*cos(2*d*x + 2*c) - (a^2*b^2 - a*b^3)*d)*cos(6*d*x + 6*c) + 4*(4*(8*a^3*b - 11
*a^2*b^2 + 3*a*b^3)*d*cos(2*d*x + 2*c) - (8*a^3*b - 11*a^2*b^2 + 3*a*b^3)*d)*cos(4*d*x + 4*c) - 4*(2*(a^2*b^2
- a*b^3)*d*sin(6*d*x + 6*c) + (8*a^3*b - 11*a^2*b^2 + 3*a*b^3)*d*sin(4*d*x + 4*c) + 2*(a^2*b^2 - a*b^3)*d*sin(
2*d*x + 2*c))*sin(8*d*x + 8*c) + 16*((8*a^3*b - 11*a^2*b^2 + 3*a*b^3)*d*sin(4*d*x + 4*c) + 2*(a^2*b^2 - a*b^3)
*d*sin(2*d*x + 2*c))*sin(6*d*x + 6*c))*integrate(-1/2*(4*b^2*cos(d*x + c)*sin(2*d*x + 2*c) - 4*b^2*cos(2*d*x +
 2*c)*sin(d*x + c) - 4*(12*a*b - 5*b^2)*cos(3*d*x + 3*c)*sin(2*d*x + 2*c) + b^2*sin(d*x + c) - (b^2*sin(7*d*x
+ 7*c) - b^2*sin(d*x + c) - (12*a*b - 5*b^2)*sin(5*d*x + 5*c) + (12*a*b - 5*b^2)*sin(3*d*x + 3*c))*cos(8*d*x +
 8*c) - 2*(2*b^2*sin(6*d*x + 6*c) + 2*b^2*sin(2*d*x + 2*c) + (8*a*b - 3*b^2)*sin(4*d*x + 4*c))*cos(7*d*x + 7*c
) - 4*(b^2*sin(d*x + c) + (12*a*b - 5*b^2)*sin(5*d*x + 5*c) - (12*a*b - 5*b^2)*sin(3*d*x + 3*c))*cos(6*d*x + 6
*c) + 2*((96*a^2 - 76*a*b + 15*b^2)*sin(4*d*x + 4*c) + 2*(12*a*b - 5*b^2)*sin(2*d*x + 2*c))*cos(5*d*x + 5*c) +
 2*((96*a^2 - 76*a*b + 15*b^2)*sin(3*d*x + 3*c) - (8*a*b - 3*b^2)*sin(d*x + c))*cos(4*d*x + 4*c) + (b^2*cos(7*
d*x + 7*c) - b^2*cos(d*x + c) - (12*a*b - 5*b^2)*cos(5*d*x + 5*c) + (12*a*b - 5*b^2)*cos(3*d*x + 3*c))*sin(8*d
*x + 8*c) + (4*b^2*cos(6*d*x + 6*c) + 4*b^2*cos(2*d*x + 2*c) - b^2 + 2*(8*a*b - 3*b^2)*cos(4*d*x + 4*c))*sin(7
*d*x + 7*c) + 4*(b^2*cos(d*x + c) + (12*a*b - 5*b^2)*cos(5*d*x + 5*c) - (12*a*b - 5*b^2)*cos(3*d*x + 3*c))*sin
(6*d*x + 6*c) + (12*a*b - 5*b^2 - 2*(96*a^2 - 76*a*b + 15*b^2)*cos(4*d*x + 4*c) - 4*(12*a*b - 5*b^2)*cos(2*d*x
 + 2*c))*sin(5*d*x + 5*c) - 2*((96*a^2 - 76*a*b + 15*b^2)*cos(3*d*x + 3*c) - (8*a*b - 3*b^2)*cos(d*x + c))*sin
(4*d*x + 4*c) - (12*a*b - 5*b^2 - 4*(12*a*b - 5*b^2)*cos(2*d*x + 2*c))*sin(3*d*x + 3*c))/(a^2*b^2 - a*b^3 + (a
^2*b^2 - a*b^3)*cos(8*d*x + 8*c)^2 + 16*(a^2*b^2 - a*b^3)*cos(6*d*x + 6*c)^2 + 4*(64*a^4 - 112*a^3*b + 57*a^2*
b^2 - 9*a*b^3)*cos(4*d*x + 4*c)^2 + 16*(a^2*b^2 - a*b^3)*cos(2*d*x + 2*c)^2 + (a^2*b^2 - a*b^3)*sin(8*d*x + 8*
c)^2 + 16*(a^2*b^2 - a*b^3)*sin(6*d*x + 6*c)^2 + 4*(64*a^4 - 112*a^3*b + 57*a^2*b^2 - 9*a*b^3)*sin(4*d*x + 4*c
)^2 + 16*(8*a^3*b - 11*a^2*b^2 + 3*a*b^3)*sin(4*d*x + 4*c)*sin(2*d*x + 2*c) + 16*(a^2*b^2 - a*b^3)*sin(2*d*x +
 2*c)^2 + 2*(a^2*b^2 - a*b^3 - 4*(a^2*b^2 - a*b^3)*cos(6*d*x + 6*c) - 2*(8*a^3*b - 11*a^2*b^2 + 3*a*b^3)*cos(4
*d*x + 4*c) - 4*(a^2*b^2 - a*b^3)*cos(2*d*x + 2*c))*cos(8*d*x + 8*c) - 8*(a^2*b^2 - a*b^3 - 2*(8*a^3*b - 11*a^
2*b^2 + 3*a*b^3)*cos(4*d*x + 4*c) - 4*(a^2*b^2 - a*b^3)*cos(2*d*x + 2*c))*cos(6*d*x + 6*c) - 4*(8*a^3*b - 11*a
^2*b^2 + 3*a*b^3 - 4*(8*a^3*b - 11*a^2*b^2 + 3*a*b^3)*cos(2*d*x + 2*c))*cos(4*d*x + 4*c) - 8*(a^2*b^2 - a*b^3)
*cos(2*d*x + 2*c) - 4*(2*(a^2*b^2 - a*b^3)*sin(6*d*x + 6*c) + (8*a^3*b - 11*a^2*b^2 + 3*a*b^3)*sin(4*d*x + 4*c
) + 2*(a^2*b^2 - a*b^3)*sin(2*d*x + 2*c))*sin(8*d*x + 8*c) + 16*((8*a^3*b - 11*a^2*b^2 + 3*a*b^3)*sin(4*d*x +
4*c) + 2*(a^2*b^2 - a*b^3)*sin(2*d*x + 2*c))*sin(6*d*x + 6*c)), x) - (b^2*sin(7*d*x + 7*c) + b^2*sin(d*x + c)
- (4*a*b + b^2)*sin(5*d*x + 5*c) - (4*a*b + b^2)*sin(3*d*x + 3*c))*sin(8*d*x + 8*c) + 2*(2*b^2*sin(6*d*x + 6*c
) + 2*b^2*sin(2*d*x + 2*c) + (8*a*b - 3*b^2)*sin(4*d*x + 4*c))*sin(7*d*x + 7*c) + 4*(b^2*sin(d*x + c) - (4*a*b
 + b^2)*sin(5*d*x + 5*c) - (4*a*b + b^2)*sin(3*d*x + 3*c))*sin(6*d*x + 6*c) - 2*((32*a^2 - 4*a*b - 3*b^2)*sin(
4*d*x + 4*c) + 2*(4*a*b + b^2)*sin(2*d*x + 2*c)...

________________________________________________________________________________________

Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 2269 vs. \(2 (173) = 346\).
time = 0.66, size = 2269, normalized size = 10.27 \begin {gather*} \text {Too large to display} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sin(d*x+c)/(a-b*sin(d*x+c)^4)^2,x, algorithm="fricas")

[Out]

-1/16*(4*b*cos(d*x + c)^3 - ((a^2*b - a*b^2)*d*cos(d*x + c)^4 - 2*(a^2*b - a*b^2)*d*cos(d*x + c)^2 - (a^3 - 2*
a^2*b + a*b^2)*d)*sqrt(-((a^6 - 3*a^5*b + 3*a^4*b^2 - a^3*b^3)*d^2*sqrt((81*a^2 - 90*a*b + 25*b^2)/((a^9*b - 6
*a^8*b^2 + 15*a^7*b^3 - 20*a^6*b^4 + 15*a^5*b^5 - 6*a^4*b^6 + a^3*b^7)*d^4)) + 15*a^2 - 15*a*b + 4*b^2)/((a^6
- 3*a^5*b + 3*a^4*b^2 - a^3*b^3)*d^2))*log((81*a^2 - 81*a*b + 20*b^2)*cos(d*x + c) + (2*(2*a^7*b - 7*a^6*b^2 +
 9*a^5*b^3 - 5*a^4*b^4 + a^3*b^5)*d^3*sqrt((81*a^2 - 90*a*b + 25*b^2)/((a^9*b - 6*a^8*b^2 + 15*a^7*b^3 - 20*a^
6*b^4 + 15*a^5*b^5 - 6*a^4*b^6 + a^3*b^7)*d^4)) - (27*a^4 - 24*a^3*b + 5*a^2*b^2)*d)*sqrt(-((a^6 - 3*a^5*b + 3
*a^4*b^2 - a^3*b^3)*d^2*sqrt((81*a^2 - 90*a*b + 25*b^2)/((a^9*b - 6*a^8*b^2 + 15*a^7*b^3 - 20*a^6*b^4 + 15*a^5
*b^5 - 6*a^4*b^6 + a^3*b^7)*d^4)) + 15*a^2 - 15*a*b + 4*b^2)/((a^6 - 3*a^5*b + 3*a^4*b^2 - a^3*b^3)*d^2))) + (
(a^2*b - a*b^2)*d*cos(d*x + c)^4 - 2*(a^2*b - a*b^2)*d*cos(d*x + c)^2 - (a^3 - 2*a^2*b + a*b^2)*d)*sqrt(((a^6
- 3*a^5*b + 3*a^4*b^2 - a^3*b^3)*d^2*sqrt((81*a^2 - 90*a*b + 25*b^2)/((a^9*b - 6*a^8*b^2 + 15*a^7*b^3 - 20*a^6
*b^4 + 15*a^5*b^5 - 6*a^4*b^6 + a^3*b^7)*d^4)) - 15*a^2 + 15*a*b - 4*b^2)/((a^6 - 3*a^5*b + 3*a^4*b^2 - a^3*b^
3)*d^2))*log((81*a^2 - 81*a*b + 20*b^2)*cos(d*x + c) + (2*(2*a^7*b - 7*a^6*b^2 + 9*a^5*b^3 - 5*a^4*b^4 + a^3*b
^5)*d^3*sqrt((81*a^2 - 90*a*b + 25*b^2)/((a^9*b - 6*a^8*b^2 + 15*a^7*b^3 - 20*a^6*b^4 + 15*a^5*b^5 - 6*a^4*b^6
 + a^3*b^7)*d^4)) + (27*a^4 - 24*a^3*b + 5*a^2*b^2)*d)*sqrt(((a^6 - 3*a^5*b + 3*a^4*b^2 - a^3*b^3)*d^2*sqrt((8
1*a^2 - 90*a*b + 25*b^2)/((a^9*b - 6*a^8*b^2 + 15*a^7*b^3 - 20*a^6*b^4 + 15*a^5*b^5 - 6*a^4*b^6 + a^3*b^7)*d^4
)) - 15*a^2 + 15*a*b - 4*b^2)/((a^6 - 3*a^5*b + 3*a^4*b^2 - a^3*b^3)*d^2))) + ((a^2*b - a*b^2)*d*cos(d*x + c)^
4 - 2*(a^2*b - a*b^2)*d*cos(d*x + c)^2 - (a^3 - 2*a^2*b + a*b^2)*d)*sqrt(-((a^6 - 3*a^5*b + 3*a^4*b^2 - a^3*b^
3)*d^2*sqrt((81*a^2 - 90*a*b + 25*b^2)/((a^9*b - 6*a^8*b^2 + 15*a^7*b^3 - 20*a^6*b^4 + 15*a^5*b^5 - 6*a^4*b^6
+ a^3*b^7)*d^4)) + 15*a^2 - 15*a*b + 4*b^2)/((a^6 - 3*a^5*b + 3*a^4*b^2 - a^3*b^3)*d^2))*log(-(81*a^2 - 81*a*b
 + 20*b^2)*cos(d*x + c) + (2*(2*a^7*b - 7*a^6*b^2 + 9*a^5*b^3 - 5*a^4*b^4 + a^3*b^5)*d^3*sqrt((81*a^2 - 90*a*b
 + 25*b^2)/((a^9*b - 6*a^8*b^2 + 15*a^7*b^3 - 20*a^6*b^4 + 15*a^5*b^5 - 6*a^4*b^6 + a^3*b^7)*d^4)) - (27*a^4 -
 24*a^3*b + 5*a^2*b^2)*d)*sqrt(-((a^6 - 3*a^5*b + 3*a^4*b^2 - a^3*b^3)*d^2*sqrt((81*a^2 - 90*a*b + 25*b^2)/((a
^9*b - 6*a^8*b^2 + 15*a^7*b^3 - 20*a^6*b^4 + 15*a^5*b^5 - 6*a^4*b^6 + a^3*b^7)*d^4)) + 15*a^2 - 15*a*b + 4*b^2
)/((a^6 - 3*a^5*b + 3*a^4*b^2 - a^3*b^3)*d^2))) - ((a^2*b - a*b^2)*d*cos(d*x + c)^4 - 2*(a^2*b - a*b^2)*d*cos(
d*x + c)^2 - (a^3 - 2*a^2*b + a*b^2)*d)*sqrt(((a^6 - 3*a^5*b + 3*a^4*b^2 - a^3*b^3)*d^2*sqrt((81*a^2 - 90*a*b
+ 25*b^2)/((a^9*b - 6*a^8*b^2 + 15*a^7*b^3 - 20*a^6*b^4 + 15*a^5*b^5 - 6*a^4*b^6 + a^3*b^7)*d^4)) - 15*a^2 + 1
5*a*b - 4*b^2)/((a^6 - 3*a^5*b + 3*a^4*b^2 - a^3*b^3)*d^2))*log(-(81*a^2 - 81*a*b + 20*b^2)*cos(d*x + c) + (2*
(2*a^7*b - 7*a^6*b^2 + 9*a^5*b^3 - 5*a^4*b^4 + a^3*b^5)*d^3*sqrt((81*a^2 - 90*a*b + 25*b^2)/((a^9*b - 6*a^8*b^
2 + 15*a^7*b^3 - 20*a^6*b^4 + 15*a^5*b^5 - 6*a^4*b^6 + a^3*b^7)*d^4)) + (27*a^4 - 24*a^3*b + 5*a^2*b^2)*d)*sqr
t(((a^6 - 3*a^5*b + 3*a^4*b^2 - a^3*b^3)*d^2*sqrt((81*a^2 - 90*a*b + 25*b^2)/((a^9*b - 6*a^8*b^2 + 15*a^7*b^3
- 20*a^6*b^4 + 15*a^5*b^5 - 6*a^4*b^6 + a^3*b^7)*d^4)) - 15*a^2 + 15*a*b - 4*b^2)/((a^6 - 3*a^5*b + 3*a^4*b^2
- a^3*b^3)*d^2))) - 4*(a + b)*cos(d*x + c))/((a^2*b - a*b^2)*d*cos(d*x + c)^4 - 2*(a^2*b - a*b^2)*d*cos(d*x +
c)^2 - (a^3 - 2*a^2*b + a*b^2)*d)

________________________________________________________________________________________

Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sin(d*x+c)/(a-b*sin(d*x+c)**4)**2,x)

[Out]

Timed out

________________________________________________________________________________________

Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 693 vs. \(2 (173) = 346\).
time = 0.79, size = 693, normalized size = 3.14 \begin {gather*} -\frac {\frac {b \cos \left (d x + c\right )^{3}}{d} - \frac {a \cos \left (d x + c\right )}{d} - \frac {b \cos \left (d x + c\right )}{d}}{4 \, {\left (b \cos \left (d x + c\right )^{4} - 2 \, b \cos \left (d x + c\right )^{2} - a + b\right )} {\left (a^{2} - a b\right )}} + \frac {{\left ({\left (3 \, a^{4} b - 8 \, a^{3} b^{2} + 7 \, a^{2} b^{3} - 2 \, a b^{4}\right )} \sqrt {-b^{2} + \sqrt {a b} b} d^{4} - {\left (3 \, a^{2} - 4 \, a b + b^{2}\right )} \sqrt {a b} \sqrt {-b^{2} + \sqrt {a b} b} d^{2} {\left | -a^{2} d^{2} + a b d^{2} \right |} + {\left (a^{2} d^{2} - a b d^{2}\right )}^{2} \sqrt {-b^{2} + \sqrt {a b} b} b\right )} \arctan \left (\frac {\cos \left (d x + c\right )}{d \sqrt {-\frac {a^{2} b d^{2} - a b^{2} d^{2} + \sqrt {{\left (a^{2} b d^{2} - a b^{2} d^{2}\right )}^{2} + {\left (a^{2} b d^{4} - a b^{2} d^{4}\right )} {\left (a^{3} - 2 \, a^{2} b + a b^{2}\right )}}}{a^{2} b d^{4} - a b^{2} d^{4}}}}\right )}{8 \, {\left (a^{4} - 3 \, a^{3} b + 3 \, a^{2} b^{2} - a b^{3}\right )} \sqrt {a b} d^{3} {\left | -a^{2} d^{2} + a b d^{2} \right |} {\left | b \right |}} - \frac {{\left ({\left (3 \, a^{4} b - 8 \, a^{3} b^{2} + 7 \, a^{2} b^{3} - 2 \, a b^{4}\right )} \sqrt {-b^{2} - \sqrt {a b} b} d^{4} + {\left (3 \, a^{2} - 4 \, a b + b^{2}\right )} \sqrt {a b} \sqrt {-b^{2} - \sqrt {a b} b} d^{2} {\left | -a^{2} d^{2} + a b d^{2} \right |} + {\left (a^{2} d^{2} - a b d^{2}\right )}^{2} \sqrt {-b^{2} - \sqrt {a b} b} b\right )} \arctan \left (\frac {\cos \left (d x + c\right )}{d \sqrt {-\frac {a^{2} b d^{2} - a b^{2} d^{2} - \sqrt {{\left (a^{2} b d^{2} - a b^{2} d^{2}\right )}^{2} + {\left (a^{2} b d^{4} - a b^{2} d^{4}\right )} {\left (a^{3} - 2 \, a^{2} b + a b^{2}\right )}}}{a^{2} b d^{4} - a b^{2} d^{4}}}}\right )}{8 \, {\left (a^{4} - 3 \, a^{3} b + 3 \, a^{2} b^{2} - a b^{3}\right )} \sqrt {a b} d^{3} {\left | -a^{2} d^{2} + a b d^{2} \right |} {\left | b \right |}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sin(d*x+c)/(a-b*sin(d*x+c)^4)^2,x, algorithm="giac")

[Out]

-1/4*(b*cos(d*x + c)^3/d - a*cos(d*x + c)/d - b*cos(d*x + c)/d)/((b*cos(d*x + c)^4 - 2*b*cos(d*x + c)^2 - a +
b)*(a^2 - a*b)) + 1/8*((3*a^4*b - 8*a^3*b^2 + 7*a^2*b^3 - 2*a*b^4)*sqrt(-b^2 + sqrt(a*b)*b)*d^4 - (3*a^2 - 4*a
*b + b^2)*sqrt(a*b)*sqrt(-b^2 + sqrt(a*b)*b)*d^2*abs(-a^2*d^2 + a*b*d^2) + (a^2*d^2 - a*b*d^2)^2*sqrt(-b^2 + s
qrt(a*b)*b)*b)*arctan(cos(d*x + c)/(d*sqrt(-(a^2*b*d^2 - a*b^2*d^2 + sqrt((a^2*b*d^2 - a*b^2*d^2)^2 + (a^2*b*d
^4 - a*b^2*d^4)*(a^3 - 2*a^2*b + a*b^2)))/(a^2*b*d^4 - a*b^2*d^4))))/((a^4 - 3*a^3*b + 3*a^2*b^2 - a*b^3)*sqrt
(a*b)*d^3*abs(-a^2*d^2 + a*b*d^2)*abs(b)) - 1/8*((3*a^4*b - 8*a^3*b^2 + 7*a^2*b^3 - 2*a*b^4)*sqrt(-b^2 - sqrt(
a*b)*b)*d^4 + (3*a^2 - 4*a*b + b^2)*sqrt(a*b)*sqrt(-b^2 - sqrt(a*b)*b)*d^2*abs(-a^2*d^2 + a*b*d^2) + (a^2*d^2
- a*b*d^2)^2*sqrt(-b^2 - sqrt(a*b)*b)*b)*arctan(cos(d*x + c)/(d*sqrt(-(a^2*b*d^2 - a*b^2*d^2 - sqrt((a^2*b*d^2
 - a*b^2*d^2)^2 + (a^2*b*d^4 - a*b^2*d^4)*(a^3 - 2*a^2*b + a*b^2)))/(a^2*b*d^4 - a*b^2*d^4))))/((a^4 - 3*a^3*b
 + 3*a^2*b^2 - a*b^3)*sqrt(a*b)*d^3*abs(-a^2*d^2 + a*b*d^2)*abs(b))

________________________________________________________________________________________

Mupad [B]
time = 16.79, size = 2500, normalized size = 11.31 \begin {gather*} \text {Too large to display} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(sin(c + d*x)/(a - b*sin(c + d*x)^4)^2,x)

[Out]

((b*cos(c + d*x)^3)/(4*a*(a - b)) - (cos(c + d*x)*(a + b))/(4*a*(a - b)))/(d*(a - b + 2*b*cos(c + d*x)^2 - b*c
os(c + d*x)^4)) + (atan(((((256*a^3*b^5 - 1024*a^4*b^4 + 768*a^5*b^3)/(64*(a^5 - 2*a^4*b + a^3*b^2)) - (cos(c
+ d*x)*(256*a^3*b^6 - 512*a^4*b^5 + 256*a^5*b^4)*(-(15*a^5*b - 9*a*(a^9*b)^(1/2) + 5*b*(a^9*b)^(1/2) + 4*a^3*b
^3 - 15*a^4*b^2)/(256*(a^9*b - a^6*b^4 + 3*a^7*b^3 - 3*a^8*b^2)))^(1/2))/(4*(a^4 - 2*a^3*b + a^2*b^2)))*(-(15*
a^5*b - 9*a*(a^9*b)^(1/2) + 5*b*(a^9*b)^(1/2) + 4*a^3*b^3 - 15*a^4*b^2)/(256*(a^9*b - a^6*b^4 + 3*a^7*b^3 - 3*
a^8*b^2)))^(1/2) + (cos(c + d*x)*(4*b^5 - 11*a*b^4 + 9*a^2*b^3))/(4*(a^4 - 2*a^3*b + a^2*b^2)))*(-(15*a^5*b -
9*a*(a^9*b)^(1/2) + 5*b*(a^9*b)^(1/2) + 4*a^3*b^3 - 15*a^4*b^2)/(256*(a^9*b - a^6*b^4 + 3*a^7*b^3 - 3*a^8*b^2)
))^(1/2)*1i - (((256*a^3*b^5 - 1024*a^4*b^4 + 768*a^5*b^3)/(64*(a^5 - 2*a^4*b + a^3*b^2)) + (cos(c + d*x)*(256
*a^3*b^6 - 512*a^4*b^5 + 256*a^5*b^4)*(-(15*a^5*b - 9*a*(a^9*b)^(1/2) + 5*b*(a^9*b)^(1/2) + 4*a^3*b^3 - 15*a^4
*b^2)/(256*(a^9*b - a^6*b^4 + 3*a^7*b^3 - 3*a^8*b^2)))^(1/2))/(4*(a^4 - 2*a^3*b + a^2*b^2)))*(-(15*a^5*b - 9*a
*(a^9*b)^(1/2) + 5*b*(a^9*b)^(1/2) + 4*a^3*b^3 - 15*a^4*b^2)/(256*(a^9*b - a^6*b^4 + 3*a^7*b^3 - 3*a^8*b^2)))^
(1/2) - (cos(c + d*x)*(4*b^5 - 11*a*b^4 + 9*a^2*b^3))/(4*(a^4 - 2*a^3*b + a^2*b^2)))*(-(15*a^5*b - 9*a*(a^9*b)
^(1/2) + 5*b*(a^9*b)^(1/2) + 4*a^3*b^3 - 15*a^4*b^2)/(256*(a^9*b - a^6*b^4 + 3*a^7*b^3 - 3*a^8*b^2)))^(1/2)*1i
)/((9*a*b^3 - 4*b^4)/(32*(a^5 - 2*a^4*b + a^3*b^2)) + (((256*a^3*b^5 - 1024*a^4*b^4 + 768*a^5*b^3)/(64*(a^5 -
2*a^4*b + a^3*b^2)) - (cos(c + d*x)*(256*a^3*b^6 - 512*a^4*b^5 + 256*a^5*b^4)*(-(15*a^5*b - 9*a*(a^9*b)^(1/2)
+ 5*b*(a^9*b)^(1/2) + 4*a^3*b^3 - 15*a^4*b^2)/(256*(a^9*b - a^6*b^4 + 3*a^7*b^3 - 3*a^8*b^2)))^(1/2))/(4*(a^4
- 2*a^3*b + a^2*b^2)))*(-(15*a^5*b - 9*a*(a^9*b)^(1/2) + 5*b*(a^9*b)^(1/2) + 4*a^3*b^3 - 15*a^4*b^2)/(256*(a^9
*b - a^6*b^4 + 3*a^7*b^3 - 3*a^8*b^2)))^(1/2) + (cos(c + d*x)*(4*b^5 - 11*a*b^4 + 9*a^2*b^3))/(4*(a^4 - 2*a^3*
b + a^2*b^2)))*(-(15*a^5*b - 9*a*(a^9*b)^(1/2) + 5*b*(a^9*b)^(1/2) + 4*a^3*b^3 - 15*a^4*b^2)/(256*(a^9*b - a^6
*b^4 + 3*a^7*b^3 - 3*a^8*b^2)))^(1/2) + (((256*a^3*b^5 - 1024*a^4*b^4 + 768*a^5*b^3)/(64*(a^5 - 2*a^4*b + a^3*
b^2)) + (cos(c + d*x)*(256*a^3*b^6 - 512*a^4*b^5 + 256*a^5*b^4)*(-(15*a^5*b - 9*a*(a^9*b)^(1/2) + 5*b*(a^9*b)^
(1/2) + 4*a^3*b^3 - 15*a^4*b^2)/(256*(a^9*b - a^6*b^4 + 3*a^7*b^3 - 3*a^8*b^2)))^(1/2))/(4*(a^4 - 2*a^3*b + a^
2*b^2)))*(-(15*a^5*b - 9*a*(a^9*b)^(1/2) + 5*b*(a^9*b)^(1/2) + 4*a^3*b^3 - 15*a^4*b^2)/(256*(a^9*b - a^6*b^4 +
 3*a^7*b^3 - 3*a^8*b^2)))^(1/2) - (cos(c + d*x)*(4*b^5 - 11*a*b^4 + 9*a^2*b^3))/(4*(a^4 - 2*a^3*b + a^2*b^2)))
*(-(15*a^5*b - 9*a*(a^9*b)^(1/2) + 5*b*(a^9*b)^(1/2) + 4*a^3*b^3 - 15*a^4*b^2)/(256*(a^9*b - a^6*b^4 + 3*a^7*b
^3 - 3*a^8*b^2)))^(1/2)))*(-(15*a^5*b - 9*a*(a^9*b)^(1/2) + 5*b*(a^9*b)^(1/2) + 4*a^3*b^3 - 15*a^4*b^2)/(256*(
a^9*b - a^6*b^4 + 3*a^7*b^3 - 3*a^8*b^2)))^(1/2)*2i)/d + (atan(((((256*a^3*b^5 - 1024*a^4*b^4 + 768*a^5*b^3)/(
64*(a^5 - 2*a^4*b + a^3*b^2)) - (cos(c + d*x)*(256*a^3*b^6 - 512*a^4*b^5 + 256*a^5*b^4)*(-(15*a^5*b + 9*a*(a^9
*b)^(1/2) - 5*b*(a^9*b)^(1/2) + 4*a^3*b^3 - 15*a^4*b^2)/(256*(a^9*b - a^6*b^4 + 3*a^7*b^3 - 3*a^8*b^2)))^(1/2)
)/(4*(a^4 - 2*a^3*b + a^2*b^2)))*(-(15*a^5*b + 9*a*(a^9*b)^(1/2) - 5*b*(a^9*b)^(1/2) + 4*a^3*b^3 - 15*a^4*b^2)
/(256*(a^9*b - a^6*b^4 + 3*a^7*b^3 - 3*a^8*b^2)))^(1/2) + (cos(c + d*x)*(4*b^5 - 11*a*b^4 + 9*a^2*b^3))/(4*(a^
4 - 2*a^3*b + a^2*b^2)))*(-(15*a^5*b + 9*a*(a^9*b)^(1/2) - 5*b*(a^9*b)^(1/2) + 4*a^3*b^3 - 15*a^4*b^2)/(256*(a
^9*b - a^6*b^4 + 3*a^7*b^3 - 3*a^8*b^2)))^(1/2)*1i - (((256*a^3*b^5 - 1024*a^4*b^4 + 768*a^5*b^3)/(64*(a^5 - 2
*a^4*b + a^3*b^2)) + (cos(c + d*x)*(256*a^3*b^6 - 512*a^4*b^5 + 256*a^5*b^4)*(-(15*a^5*b + 9*a*(a^9*b)^(1/2) -
 5*b*(a^9*b)^(1/2) + 4*a^3*b^3 - 15*a^4*b^2)/(256*(a^9*b - a^6*b^4 + 3*a^7*b^3 - 3*a^8*b^2)))^(1/2))/(4*(a^4 -
 2*a^3*b + a^2*b^2)))*(-(15*a^5*b + 9*a*(a^9*b)^(1/2) - 5*b*(a^9*b)^(1/2) + 4*a^3*b^3 - 15*a^4*b^2)/(256*(a^9*
b - a^6*b^4 + 3*a^7*b^3 - 3*a^8*b^2)))^(1/2) - (cos(c + d*x)*(4*b^5 - 11*a*b^4 + 9*a^2*b^3))/(4*(a^4 - 2*a^3*b
 + a^2*b^2)))*(-(15*a^5*b + 9*a*(a^9*b)^(1/2) - 5*b*(a^9*b)^(1/2) + 4*a^3*b^3 - 15*a^4*b^2)/(256*(a^9*b - a^6*
b^4 + 3*a^7*b^3 - 3*a^8*b^2)))^(1/2)*1i)/((9*a*b^3 - 4*b^4)/(32*(a^5 - 2*a^4*b + a^3*b^2)) + (((256*a^3*b^5 -
1024*a^4*b^4 + 768*a^5*b^3)/(64*(a^5 - 2*a^4*b + a^3*b^2)) - (cos(c + d*x)*(256*a^3*b^6 - 512*a^4*b^5 + 256*a^
5*b^4)*(-(15*a^5*b + 9*a*(a^9*b)^(1/2) - 5*b*(a^9*b)^(1/2) + 4*a^3*b^3 - 15*a^4*b^2)/(256*(a^9*b - a^6*b^4 + 3
*a^7*b^3 - 3*a^8*b^2)))^(1/2))/(4*(a^4 - 2*a^3*b + a^2*b^2)))*(-(15*a^5*b + 9*a*(a^9*b)^(1/2) - 5*b*(a^9*b)^(1
/2) + 4*a^3*b^3 - 15*a^4*b^2)/(256*(a^9*b - a^6*b^4 + 3*a^7*b^3 - 3*a^8*b^2)))^(1/2) + (cos(c + d*x)*(4*b^5 -
11*a*b^4 + 9*a^2*b^3))/(4*(a^4 - 2*a^3*b + a^2*b^2)))*(-(15*a^5*b + 9*a*(a^9*b)^(1/2) - 5*b*(a^9*b)^(1/2) + 4*
a^3*b^3 - 15*a^4*b^2)/(256*(a^9*b - a^6*b^4 + 3*a^7*b^3 - 3*a^8*b^2)))^(1/2) + (((256*a^3*b^5 - 1024*a^4*b^4 +
 768*a^5*b^3)/(64*(a^5 - 2*a^4*b + a^3*b^2)) + ...

________________________________________________________________________________________